package com.atguigu.tingshu.user.service;

import com.atguigu.tingshu.model.user.UserInfo;
import com.atguigu.tingshu.vo.user.UserCollectVo;
import com.atguigu.tingshu.vo.user.UserInfoVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface UserInfoService extends IService<UserInfo> {

    Map<String, Object> wxLogin(String code);

    Map<String, Object> refreshToken();

    //获取用户信息
    UserInfoVo getUserInfo(Long userId);

    void updateUserInfo(UserInfoVo userInfoVo);

    Map<Long, String> getUserPaidAlbumTrackList(Long userId, Long albumId);

    Boolean getUserPaidAlbum(Long userId, Long albumId);

    //收藏
    Boolean collect(Long trackId);

    //是否收藏
    Boolean isCollect(Long trackId);

    //订阅
    Boolean isSubscribe(Long albumId);

    IPage<UserCollectVo> findUserCollectPage(IPage<UserCollectVo> userCollectVos, Long userId);
}
